from django.contrib import admin
from rbac import models

# Register your models here.
admin.site.register(models.Menu)
admin.site.register(models.User)


class PermissionAdmin(admin.ModelAdmin):
    list_display = ['id', 'url', 'title','menu','parent']
    list_editable = ['url', 'title','menu','parent']
    ordering = ('id',)


admin.site.register(models.Permission, PermissionAdmin)

admin.site.register(models.Role)
